home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
olrdrs
/
smx330.zip
/
SMX-PROG.DOC
< prev
next >
Wrap
Text File
|
1993-10-25
|
5KB
|
102 lines
For those of you who'd like to modify the CONFIG.SMX to your liking (and who
do not yet have a utility to do that) here is a Pascal record of the format
for the Config file.
Until a decent installation/setup utility is written, it would be best to
give the information for those who'd like to do some tweaking or customizing. (I've been emphasizing on fixing bugs and enhance-
ments in the older Beta-versions of SigMX rather than writing an elabortate
installation utility.) Of course, if you have some form of disk- or hex-
editor, you can also modify the cinfiguration file.
(Note that in older versions of SigMX the file was called SIGMX.CFG. The
filename really doesn't matter, and any configuration file after v3.00ß
should be compatible. If you have the configuration file for SigMX v2.xx,
you'll have to redo the configuration.)
In Pascal, use the following definition:
type
Config = record
Version: string[10]; (* Version Number *)
SigFileName, (* Path/File of Sig *)
TagPhraseFileName, (* Path/File of TagPhrases *)
LastTagLine: string[78]; (* Final TagLine *)
Reserved00: byte; (* Left-over from v3.10ß *)
BorderDef: array[1..48] (* Border Definitions *)
of char;
Reserved01: byte; (* Left-over from v3.10ß *)
Conversion: array[1..128] (* ASCII 7/8 bit conversion *)
of char;
Width, (* Width of SigBlock *)
Height: byte (* Height of SigBlock *)
LastSelected, (* Last TagPhrase Selected *)
ASCII_Toggle: word; (* 00h=8-bit, 0Ch=7-bit ASC *)
Colors: array[0..15] (* Colors *)
of byte;
end;
* Note that string[x] if an array of characters from [0..x], where item[0]
is the length and items [1..x] are the data. Keep this in mind if you
are using C instead of Pascal to handle the strings.
Please consult your manual on typedef I/O if you don't yet know. Also, make
sure you back-up a copy of the configuration file in case you make a mistake!
I suggest leaving the _Version_ string as it is, since it may be used by
future versions of SigMX for updating or converting the CFG or SMX file....
_Width_ should be no larger than 78 (especially if Borders are defined!).
However, if should by no means be smaller than the width of the sig you
plan on using.
The _Conversion_ string is a string of 128 characters (The length-byte must
always be set to 128!) used to convert 8-bit IBM-PC ASCII characters to
7-bit characters. Thus Conversion[1] is the 7-bit character that ASCII 128
will be changed to, Conversion[2] <--> ASCII 129 etc.
The _BorderDef_ string defines the characters used to create the Border:
BorderDef[01] = Left Vertical Character (8-bit)
BorderDef[02] = Middle Vertical Char ("Middle" seperates Sig from TagPhrase)
BorderDef[03] = Right Vertical Char
BorderDef[04] = Top Horizontal Char
BorderDef[05] = Bottom Horizontal Char
BorderDef[06] = Top Left Corner Char
BorderDef[07] = Top Middle Char
BorderDef[08] = Right Top Char
BorderDef[09] = Left Bottom
BorderDef[10] = Middle Bottom
BorderDef[11] = Right Bottom
BorderDef[12] = TagLine Character (FEh is usual)
BorderDef[13..24] equivalent to BorderDef[1..12], only these are the 7-bit
characters used for Networks (such as FIDO).
BorderDef[25..45] are reserved for later use.
BorderDef[46] = Reserved.
BorderDef[47] = Reserved.
BorderDef[48] = 00h for no border, FFh (255) for Border.
The _Colors_ are as follows:
Colors[00] = Main Screen Border
Colors[01] = SigBlock Text Preview
Colors[02] = TagPhrase Selection Text
Colors[03] = TagPhrase Highlight
Colors[04] = Dialogue Box
Colors[05] = Help Screen
Colors[06] = View Screen Border
Colors[07] = View Screen Text
Colors[08] = Error Message
Colors[09] = Bottom Status Line Message
Colors[10..15] are reserved for later use.
Please note that SigMX assumes that the Sig you use is not too wide and
that the TagPhrase file is not too long, otherwise unforseen consequences
may occur. If you want to plug in strange values and risk SigMX crashing,
go ahead....it's your copy, on your computer....
If you write yourself a decent installation utility, please let me know, and
please feel free to circulate it among other users of SigMX, so long as it
is distributed in a seperate archive.